package chp12.test1;

import java.util.Scanner;

public class TestCalculator {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请选择运算:1.加法 2.减法 3.乘法 4.除法:");
        int yun = input.nextInt();
        System.out.print("请输入第一个数:");
        int num1 = input.nextInt();
        System.out.print("请输入第二个数:");
        int num2 = input.nextInt();

        Calculator calculator = new Calculator();
        calculator.ope(yun,num1,num2);

        int answer = calculator.ope2(yun,num1,num2);
        System.out.println("结果是:" + answer);
    }
}
